package com.ruoyi.app.service

import com.ruoyi.app.common.Data
import com.ruoyi.app.domain.vo.AlipayResult
import com.ruoyi.back.domain.dto.UserMemberOrderDto
import javax.servlet.http.HttpServletRequest

interface PayApiService {

    /**
     * 微信预支付
     */
    fun <T> createWxOrder(userMemberOrderDto: UserMemberOrderDto): Data<T>

    /**
     * 创建阿里支付
     */
    fun createAliOrder(userMemberOrderDto: UserMemberOrderDto): Data<String>


    /**
     * 微信支付回调
     */
    fun wxNotify(xmlData: String): String

    /**
     * 阿里支付回调
     */
    fun aliNotify(request: HttpServletRequest): String
}